package com.hualan.sfzy.entity;

import com.hualan.sfzy.entity.SysUser;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Question {
    private Integer id;
    private String title;
    private String content;
    private Integer userId;
    // 时间格式修
    // 支持带时区的格式（如 2025-07-02T16:00:00.000Z）和空值
    @DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", iso = DateTimeFormat.ISO.DATE_TIME)
    private Date time;
    private Integer del;
    private SysUser sysUser;


}
